package typeErasure;

import java.util.Collection;

public class GenericType5<T, E extends T> {

    T value1;
    E value2;

    //
    public <D, S extends  D> void  test(D d, S s) {

    }

    // 通配符和类型参数一起使用
    public <T> void test(T t, Collection<? extends T> collection) {

    }


    public T test1(T t) {
        return value1;
    }

    public T test2(T t) {
        return t;
    }
}
